package cn.edu.hdu.instantMessage;

public class AbstractVideoInstantMessage extends AbstractInstantMessage {
    @Override
	public VideoInstantMessage getVideoInstant_mess(String name) {
		System.out.println("This is AVF");
		if(name.equalsIgnoreCase("Video1")) {
			System.out.println("Video1 is ok");
			return new Vedio1();
		}else if(name.equalsIgnoreCase("Video2")) {
			System.out.println("Video2 is ok");
			return new Vedio2();
		}
		else {
			System.out.println("No true Video");
			return null;
		}
	}
	
	@Override
	public PhotoInstantMessage getPhotoInstant_mess(String name) {
		//
		return null;
	}
    
}
